package com.juli.school.utils.self;

import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.ConvertUtils;

public class BeanUtilEx extends BeanUtils {
	
	static {
		ConvertUtils.register(new DateConvert(), java.util.Date.class);
	}
	
	public static void copyProperties(Object target, Object source) throws InvocationTargetException, IllegalAccessException {
		org.apache.commons.beanutils.BeanUtils.copyProperties(target, source);
	}
}
